package com.csii.modules.online.cgform.converter.component;

import java.util.ArrayList;
import java.util.List;

import com.csii.core.util.SpringContextUtils;
import com.csii.core.util.oConvertUtils;
import com.csii.modules.online.cgform.converter.comment.DictCommentConverter;
import com.csii.modules.system.service.ISysBaseAPI;
import com.csii.modules.online.cgform.entity.OnlCgformField;

public class RadioComponentConverter extends DictCommentConverter {
   public RadioComponentConverter(OnlCgformField var1) {
      ISysBaseAPI var2 = (ISysBaseAPI) SpringContextUtils.getBean(ISysBaseAPI.class);
      String var3 = var1.getDictTable();
      String var4 = var1.getDictText();
      String var5 = var1.getDictField();
      Object var6 = new ArrayList();
      if (oConvertUtils.isNotEmpty(var3)) {
         var6 = var2.queryTableDictItemsByCode(var3, var4, var5);
      } else if (oConvertUtils.isNotEmpty(var5)) {
         var6 = var2.queryDictItemsByCode(var5);
      }

      this.b = (List)var6;
      this.a = var1.getDbFieldName();
   }
}
